package com.weixing.mall.base.enums;

import lombok.NoArgsConstructor;

/**
 * 单位
 *
 * @author siashan
 * @since  v1.0
 */


@NoArgsConstructor
public enum UnitEnum implements IBaseEnum<Integer> {
    DAY(1,"天"),
    PIECE (2,"件"),
    ITEM(3,"条")
    ;

    private int value;
    private String desp;

    UnitEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
